/***************************************************************************
 *   Copyright (C) 2008 by Goliash   *
 *   goliash@goliash.net   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

#ifndef ADD_MEDIUM_H
#define ADD_MEDIUM_H

#include <QDialog>
#include "ui_add_medium.h"
#include "scan_dialog.h"
#include "medium.h"
#include "discover_thread.h"


const QString stateIn = "Inserted";
const QString stateNotIn = "No medium found";

/**
 * The adding-medium dialog.
 */
class AddMediumDialog: public QDialog, private Ui::add_medium_dialog
{
	Q_OBJECT
	
	public:
		AddMediumDialog(QWidget *parent = 0);
		void setMedium(Medium *medium);
		
		void setData(Preferences *prefs);
		void getData(Preferences *prefs);

		void useFilterJPEG(bool b);
		bool filterJPEG();
		void useFilterTxt(bool b);
		bool filterTxt();
		void useFilterMp3(bool b);
		bool filterMp3();
		void useFilterPdf(bool b);
		bool filterPdf();

	public slots:
		void mediumChanged(int state);
		void refresh();
		void accept();
		void reject();
	private:
		Medium *medium;
		Preferences *prefs;
};


#endif // ADD_MEDIUM_H
